Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements

4 Posted Topics

Member Avatar for biljith

isnt this the shortest method [code=c]#include<iostream.h> #include<conio.h> void main() { clrscr(); int a,i=0; cout<<"enter a number"; cin>>a; while(a>0) { int b=a%10; a=a/10; i=i+b; } cout<<"sum="<<i; getch(); }[/code]

Member Avatar for ReaseySo
0
272
Member Avatar for mrgreen

is this necessary cant v use arrays and for loop sorry if i m rong i m new to c++

Member Avatar for biljith
0
178
Member Avatar for Mehedibd89
Member Avatar for biljith

how to write a program that can accept a date from user and print the day on which it occurs

Member Avatar for Ancient Dragon
0
111

The End.