No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
Hi i just wanted to ask whether we cud use #include<string> and declare a data type called 'string' eg. string ch;? and where is "using namespace std" used?
1.#include<stdio.h> 2.main( ) 3. 4.{ 5. 6. int i=10,j=20; 7. printf("%d %d",i,j); 8. return 0; 9. 10.} u just need to modify the printf statement & is always used in scanf
program to display 10 multiples of a number [code=c] #include<stdio.h> main() { int m,n,o; m=5; for(n=0;n<11;n=n+1) o=m*n; printf("Multiples are %d",o); }[/code]
the program asks to calculate the power of a number, for eg. if 2 is entered as the base and 3 is th power it should display 8.
The End.
awi123