+ 1
How i can write this in java? /*i don't know how i scan n*/
#include<stdio.h>; int main(){ int n,i; printf("give a number"); scanf("℅d",&n); for(i=0,i<=n,i++){ printf("%d",i); } return 0; }
2 Respuestas
+ 1
You are already started learning java. So all solution you can find in 1st chapter's input taking, output, main method..
Revise those and try it yourself Fisrt... Post your try..